package org.teremail.mailbox;

import java.util.List;

public interface Folder {

    enum SortKey { UID, FROM, SUBJECT, DATE };
    
    String getName();

    Path getPath();

    List<FolderEntry> getFolderEntries(int pageNo, int pageSize, SortKey...sortKey);

    FolderEntry getMessage(int uid) throws EntryNotExistsException;

}
